class Fun {
  public static void main(String[] args)
  {
    Integer i = new Integer(10);
    Integer j = new Integer(10);
    int sum1, sum2;
    sum1 = (i.intValue() / 2) + fun (i);
    sum2 = fun(j) + (j.intValue() / 2);
    System.out.println("sum1:" + sum1);
    System.out.println("sum2:" + sum2);
    return;
  }

  private static Integer fun(Integer k)
  {
    k += 4;
    return 3 * (k) - 1;
  }
}
